load("@rules_cc//cc:defs.bzl", "cc_test")

package(default_visibility = ["//visibility:private"])

cc_test(
    name = "trompeloeil_self",
    srcs = [
        "compiling_tests.cpp",
        "compiling_tests.hpp",
        "compiling_tests_11.cpp",
        "compiling_tests_14.cpp",
        "test_reporter.hpp",
    ],
    defines = [
        "CATCH2_VERSION=3",
    ],
    deps = [
        "@trompeloeil",
        "@catch2//:catch2_main",
    ],
)

cc_test(
    name = "trompeloeil_thread_terror",
    srcs = [
        "thread_terror.cpp",
    ],
    defines = [
        "CATCH2_VERSION=3",
    ],
    deps = [
        "@trompeloeil",
        "@catch2//:catch2_main",
    ],
    linkopts = ["-lpthread"],
)

cc_test(
    name = "trompeloeil_custom_recursive_mutex",
    srcs = [
        "custom_recursive_mutex.cpp",
    ],
    defines = [
        "CATCH2_VERSION=3",
    ],
    deps = [
        "@trompeloeil",
        "@catch2//:catch2_main",
    ],
    linkopts = ["-lpthread"],
)
